package com.atguigu.rabbit.producer.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * @BelongsProject: rabbitmq-parent-0528
 * @BelongsPackage: com.atguigu.rabbit.producer.config
 * @Author: jiangyi
 * @CreateTime: 2025-09-15  11:29
 * @Description: TODO
 * @Version: 1.0
 */
@Configuration
public class RabbitmqWorkQueueConfiguration {
    @Bean
    public Queue workQueue(){
        Queue queue = QueueBuilder.durable("work_queue").build();
        return queue;
    }
}
